package cn.wh.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 创建课程订单的相关参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseOrderCreateParamsDto {
    //购买的课程ID
    @NotEmpty(message = "课程Id不能为空")
    private List<Long> courseIds;
    //支付方式  1 支付宝 2银联 3微信
    @NotNull(message = "支付方式必选")
    private Integer payType;
    //下单防重复的token
    @NotEmpty(message = "token必传")
    private String token;
    //是否是秒杀下单  0普通订单   1秒杀下单
    @NotNull(message = "类型必传")
    private Integer type;
}
